﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Globalization;
using System.Threading;

namespace Console
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru-RU");

            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            }
            catch (Mimoza.Common.BaseException e)
            {
                Mimoza.Common.Logger.Log.Error("Console: Progrma.Main error - '" + e.ToString() + "'.");
#if DEBUG
                throw e;
#endif
            }
        }
    }
}
